// 使用mockjs 模拟接口数据
import Mock from "mockjs";
import banner from "./banner.json";
import floor from "./floor.json";
import address from "./address.json";

// 使用mockjs拦截ajax请求 写接口和响应

//通过mock器模拟本地数据接口
Mock.mock("/mock-api/banner", "get", {
  code: 200,
  data: banner,
});

Mock.mock("/mock-api/floor", "get", {
  code: 200,
  data: floor,
});

Mock.mock("/mock-api/address", "get", {
  code: 200,
  data: address,
});
